package tq.com.tqteacher.activity.login;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.view.View;

import tq.com.tqcom.base.BaseActivity;
import tq.com.tqteacher.R;

public class TQPhoneLoginActivity extends BaseActivity {



    static public void show(Activity base){
        Intent  intent = new Intent(base, TQPhoneLoginActivity.class);
        intent.setFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP|Intent.FLAG_ACTIVITY_SINGLE_TOP);
        base.startActivity(intent);
    }
    @Override
    protected void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setStatusBar();

        setContentView(R.layout.activity_phone_login_layout);
        findViewById(R.id.login_accout).setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                TQLoginActivity.show(TQPhoneLoginActivity.this);
            }
        });

        findViewById(R.id.forgot_pwd).setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                TQForgotPwdActivity.show(TQPhoneLoginActivity.this);
            }
        });
    }
}
